/*
 * copyright (c) 2009 Alexandr [Sn@ble] Surnin
 *
 * This file is part of CVP.
 *
 * CVP is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * CVP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You can read the full version of GNU LGPL in
 * http://www.gnu.org/copyleft/lesser.html
 */


#include "track.h"

Track::Track(QWidget *parent) : QWidget(parent) {

    setMinimumSize(parent->width(), 64);

    mainLayout = new QHBoxLayout();

    header = new TrackHeader(this);
    body = new TrackBody(this);

    mainLayout->addWidget(header, 0, Qt::AlignLeft);
    mainLayout->addWidget(body, 1, Qt::AlignLeft);
    //mainLayout->addStretch();

    setLayout(mainLayout);
}
